/**
 * 小程序配置文件
 */

// 此处主机域名是腾讯云解决方案分配的域名
// 小程序后台服务解决方案：https://www.qcloud.com/solution/la

//var host = "192.168.1.183:8080/api"
//var host_root ="fyh.ytrain.com";
var host_root ="www.fyh.ytrain.com";
//var host = "fyh.ytrain.com/api";
var host ="www.fyh.ytrain.com/api";


var SESSION_ID ="SESSION_ID";
var paper_host = "lingxiuti.org/api";
var paper_host_root ="lingxiuti.org";
var shareName='福音';
//var shareDes="每天活在神的话语和恩典里面";
var shareDes = "点击看全宇宙最重要的资讯!";
var barTitle ="福音";
var config = {

    // 下面的地址配合云端 Server 工作
    host_https: `https://${host}`,

    host_root_https: `https://${host_root}`,

    SESSION_ID,

    // 登录地址，用于建立会话
    loginUrl: `https://${host}/login`,

    // 测试的请求地址，用于测试会话
    requestUrl: `https://${host}/testRequest`,

    // 用code换取openId
    openIdUrl: `https://${host}/openid`,

    // 测试的信道服务接口
    tunnelUrl: `https://${host}/tunnel`,

    // 生成支付订单的接口
    paymentUrl: `https://${host}/payment`,

    // 发送模板消息接口
    templateMessageUrl: `https://${host}/templateMessage`,

    // 上传文件接口
    uploadFileUrl: `https://${host}/upload`,

    // 下载示例图片接口
    downloadExampleUrl: `https://${host}/static/weapp.jpg`,
    //tagName  当前是恩典365
    tagName:'evangel',
    //最根本的host
    hostUrl: `https://${host}`,

    search: `https://${host}/search`,
    //findByTagNameUrl
    findByTagNameUrl: `https://${host}/materials/search/findByTagName`,

    materials: `https://${host}/materials`,
    
    getUser: `https://${host}/getUser`,

    series: `https://${host}/series`,

    gTags: `https://${host}/gTags`,

    materialViews: `https://${host}/materialViews`,

    seriesViews: `https://${host}/seriesViews`,

    messages: `https://${host}/messages`,

    userProfiles: `https://${host}/userProfiles`,

    mini_program: `https://${host}/mini-program`,

    notifications: `https://${host}/notifications`,

    seriesDocuments:`https://${host}/seriesDocuments`,

    materialDocuments: `https://${host}/materialDocuments`,

    //试卷
    paper_host,

    papers: `https://${paper_host}/papers`,

    puttings: `https://${paper_host}/puttings`,

    problems: `https://${paper_host}/problems`,

    qTags: `https://${paper_host}/qTags`,

    solvings: `https://${paper_host}/solvings`,

    paper_host_root,

    paper_problems: `https://${paper_host_root}`,

    qTags_Id:2557,

    shareName ,

    shareDes,

    barTitle,

    userDocuments: `https://${host}/userDocuments`
};

module.exports = config
